Optimal. Leaf size=119 \[ -\frac {2 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}-\frac {8 b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )}{3 e^2}+\frac {8 b d n \sqrt {d+e x}}{3 e^2}-\frac {4 b n (d+e x)^{3/2}}{9 e^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 119, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 7, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {43, 2350, 12, 80, 50, 63, 208} \[ -\frac {2 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}-\frac {8 b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )}{3 e^2}+\frac {8 b d n \sqrt {d+e x}}{3 e^2}-\frac {4 b n (d+e x)^{3/2}}{9 e^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 43
Rule 50
Rule 63
Rule 80
Rule 208
Rule 2350
Rubi steps
\begin {align*} \int \frac {x \left (a+b \log \left (c x^n\right )\right )}{\sqrt {d+e x}} \, dx &=-\frac {2 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}-(b n) \int \frac {2 (-2 d+e x) \sqrt {d+e x}}{3 e^2 x} \, dx\\ &=-\frac {2 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}-\frac {(2 b n) \int \frac {(-2 d+e x) \sqrt {d+e x}}{x} \, dx}{3 e^2}\\ &=-\frac {4 b n (d+e x)^{3/2}}{9 e^2}-\frac {2 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac {(4 b d n) \int \frac {\sqrt {d+e x}}{x} \, dx}{3 e^2}\\ &=\frac {8 b d n \sqrt {d+e x}}{3 e^2}-\frac {4 b n (d+e x)^{3/2}}{9 e^2}-\frac {2 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac {\left (4 b d^2 n\right ) \int \frac {1}{x \sqrt {d+e x}} \, dx}{3 e^2}\\ &=\frac {8 b d n \sqrt {d+e x}}{3 e^2}-\frac {4 b n (d+e x)^{3/2}}{9 e^2}-\frac {2 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}+\frac {\left (8 b d^2 n\right ) \operatorname {Subst}\left (\int \frac {1}{-\frac {d}{e}+\frac {x^2}{e}} \, dx,x,\sqrt {d+e x}\right )}{3 e^3}\\ &=\frac {8 b d n \sqrt {d+e x}}{3 e^2}-\frac {4 b n (d+e x)^{3/2}}{9 e^2}-\frac {8 b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )}{3 e^2}-\frac {2 d \sqrt {d+e x} \left (a+b \log \left (c x^n\right )\right )}{e^2}+\frac {2 (d+e x)^{3/2} \left (a+b \log \left (c x^n\right )\right )}{3 e^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.11, size = 80, normalized size = 0.67 \[ -\frac {2 \left (\sqrt {d+e x} \left (6 a d-3 a e x+b (6 d-3 e x) \log \left (c x^n\right )-10 b d n+2 b e n x\right )+12 b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )\right )}{9 e^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 189, normalized size = 1.59 \[ \left [\frac {2 \, {\left (6 \, b d^{\frac {3}{2}} n \log \left (\frac {e x - 2 \, \sqrt {e x + d} \sqrt {d} + 2 \, d}{x}\right ) + {\left (10 \, b d n - 6 \, a d - {\left (2 \, b e n - 3 \, a e\right )} x + 3 \, {\left (b e x - 2 \, b d\right )} \log \relax (c) + 3 \, {\left (b e n x - 2 \, b d n\right )} \log \relax (x)\right )} \sqrt {e x + d}\right )}}{9 \, e^{2}}, \frac {2 \, {\left (12 \, b \sqrt {-d} d n \arctan \left (\frac {\sqrt {e x + d} \sqrt {-d}}{d}\right ) + {\left (10 \, b d n - 6 \, a d - {\left (2 \, b e n - 3 \, a e\right )} x + 3 \, {\left (b e x - 2 \, b d\right )} \log \relax (c) + 3 \, {\left (b e n x - 2 \, b d n\right )} \log \relax (x)\right )} \sqrt {e x + d}\right )}}{9 \, e^{2}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.76, size = 145, normalized size = 1.22 \[ \frac {8 \, b d^{2} n \arctan \left (\frac {\sqrt {x e + d}}{\sqrt {-d}}\right ) e^{\left (-2\right )}}{3 \, \sqrt {-d}} + \frac {2}{9} \, {\left (3 \, {\left (x e + d\right )}^{\frac {3}{2}} b n \log \left (x e\right ) - 9 \, \sqrt {x e + d} b d n \log \left (x e\right ) - 5 \, {\left (x e + d\right )}^{\frac {3}{2}} b n + 21 \, \sqrt {x e + d} b d n + 3 \, {\left (x e + d\right )}^{\frac {3}{2}} b \log \relax (c) - 9 \, \sqrt {x e + d} b d \log \relax (c) + 3 \, {\left (x e + d\right )}^{\frac {3}{2}} a - 9 \, \sqrt {x e + d} a d\right )} e^{\left (-2\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.42, size = 0, normalized size = 0.00 \[ \int \frac {\left (b \ln \left (c \,x^{n}\right )+a \right ) x}{\sqrt {e x +d}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.23, size = 127, normalized size = 1.07 \[ \frac {4}{9} \, b n {\left (\frac {3 \, d^{\frac {3}{2}} \log \left (\frac {\sqrt {e x + d} - \sqrt {d}}{\sqrt {e x + d} + \sqrt {d}}\right )}{e^{2}} - \frac {{\left (e x + d\right )}^{\frac {3}{2}} - 6 \, \sqrt {e x + d} d}{e^{2}}\right )} + \frac {2}{3} \, b {\left (\frac {{\left (e x + d\right )}^{\frac {3}{2}}}{e^{2}} - \frac {3 \, \sqrt {e x + d} d}{e^{2}}\right )} \log \left (c x^{n}\right ) + \frac {2}{3} \, a {\left (\frac {{\left (e x + d\right )}^{\frac {3}{2}}}{e^{2}} - \frac {3 \, \sqrt {e x + d} d}{e^{2}}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {x\,\left (a+b\,\ln \left (c\,x^n\right )\right )}{\sqrt {d+e\,x}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________